from serializer import TurtleMapping

class Organization(object):
	
	def __init__(self,location,identifier=None):
		self.location = location
		self.identifier = identifier

	def uri(self):
		return self.identifier
		
mapping = {
	"__rdftype__" : {
		"type" : "resource",
		"predicate" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
		"values" : ["http://xmlns.com/foaf/0.1/Organization"]
	},
	"location" : {
		"type" : "literal",
		"predicate" : "http://purl.org/dc/terms/description",
		"datatype" : "http://www.w3.org/2001/XMLSchema#string"
	}
}

serializer = TurtleMapping(mapping)